package com.zh.webflux.vo;

import java.util.Date;

import com.zh.webflux.common.utils.BeanUtils;
import com.zh.webflux.model.UserInfo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserInfoVO {
	private Integer userId;

	private String openId;

	private String nickName;

	private String headimgurl;

	private Integer sex;

	private String userType;

	private String inviteOpenid;

	private Integer takeCardAmount;

	private Integer useTakeCardAmount;

	private Integer takePrizeAmount;

	private Integer useTakePrizeAmount;

	private Date createDate;

	private Integer fullCollectStatus;

	private String phone;

	public static UserInfoVO bulidUserInfoVO(UserInfo userInfo) {
		UserInfoVO infoVO = new UserInfoVO();
		BeanUtils.copyEntityProperties(userInfo, infoVO);
		return infoVO;
	}

}